<template>
  <div>
    <el-container>
      <!-- 导航页 -->
      <el-aside width="200px">
        <router-view name="aside"></router-view>
      </el-aside>
      <el-container>
        <!-- 头部，标签栏 -->
        <el-header>
          <router-view name="header"></router-view>
        </el-header>
        <!-- 主要内容 -->
        <el-main>
          <router-view name="main"></router-view>
          <router-view></router-view>
        </el-main>
        <!-- 底部 -->
        <el-footer>
          <router-view name="footer"></router-view>
        </el-footer>
      </el-container>
    </el-container>
  </div>
</template>

<style>
.el-header,
.el-footer {
  background-color: #b3c0d1;
  color: #333;
  line-height: 60px;
}

.el-aside {
  background-color: #d3dce6;
  color: #333;
  line-height: 14px;
  overflow: hidden !important;
}

.el-main {
  background-color: #e9eef3;
  color: #333;
  text-align: center;
  max-height: calc(100vh-121px);
}

body {
  margin-top: 0px;
  margin-left: 0px;
  margin-right: 0px;
  margin-bottom: 0px;
}

.el-col-12 {
  width: 100% !important;
}

.el-menu {
  height: calc(100vh - 61px);
}
</style>

<script>
export default {
  methods: {
    handleOpen(key, keyPath) {
      console.log(key, keyPath);
    },
    handleClose(key, keyPath) {
      console.log(key, keyPath);
    },
  },
};
</script>